<template>
    <div>
        <Tinymce :height='400' ref="editor" v-model='sampleContract'/>

        <div v-if='sampleContract !== oldData' class='modification'>
            <p>修改前:</p>
            <Tinymce :height='400' ref="editor" v-model="oldData"/>
        </div>
    </div>
</template>


<script>
import Tinymce from '@/components/Tinymce'
export default {
    name:'threeTinymce',
    data(){
        return {
            sampleContract:'',
            oldData:''
        }
    },
    methods:{
        openThreeStatus(data,oldData){
            this.sampleContract = data;
            this.oldData = oldData;
        }
    },
    components:{
        Tinymce
    }
}
</script>


<style lang="less" scoped>
.btn{
    margin: 2rem 0 0 0;
}

</style>
